/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ru.jSkyRoom.bridge.major;

import ru.jSkyRoom.bridge.JSkyBridge;
import ru.jSkyRoom.interfaces.major.Major;
import skyproc.FormID;
import skyproc.MajorRecord;
import skyproc.MajorRecord.MajorFlags;

/**
 *
 * @author Rakev
 */
public class MajorBridge<T extends MajorRecord> extends JSkyBridge<T> implements Major {

    public MajorBridge(T adapting) {
        super(adapting);
    }

    @Override
    public String getEDID() {
        return getRawObject().getEDID();
    }

    @Override
    public FormID getForm() {
        return getRawObject().getForm();
    }

    @Override
    public boolean getFlag(MajorFlags flagType) {
        return getRawObject().get(flagType);
    }

    @Override
    public void setFlag(MajorFlags flagType) {
        getRawObject().set(flagType, true);
    }

    @Override
    public void unsetFlag(MajorFlags flagType) {
        getRawObject().set(flagType, false);
    }
}
